<template>
     <!-- 底部 -->
     <div id="footer">
            <div class="foot">
                    <div class="topright"  @click="shouye"> 
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-shouye"></use>
                        </svg>
                    </div>
                    <span>首页</span>
                </div>
                <div class="foot" @click="fanchan">
                    <div class="topright"> 
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-tianchongxing-"></use>
                        </svg>
                    </div>
                    <span>产业</span>
                </div>
                <div class="foot" @click="my">
                    <div class="topright"> 
                        <svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-31wode"></use>
                        </svg>
                    </div>
                    <span>我的</span>
                </div>
        </div>
</template>

<script>
export default{
    name:"Top",
    methods:{
        // //跳转到首页
        my:function(){
            this.$router.replace('/my')
        },
        fanchan:function(){
            this.$router.replace('/fanchan')
        },
        shouye:function(){
            this.$router.replace('/shouye')
        },
    }
}
</script>

<style lang="less" scoped>
// 底部
#footer{
    width: 100%;
    height: 80px;
    background: rgb(134,190,255);
    display: flex;                 ///！！！！！！
    justify-content: space-between; ///！！！！！！
    align-items: center;//垂直居中
}
.foot{
    padding: 5px;
}
span{
    margin-left: 9px;
}

</style>